﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace MO.ModelingClient
{
    public partial class ItemTimeControl : ItemBaseControl
    {
        public ItemTimeControl(string title)
        {
            InitializeComponent();
            base.Init(title);
        }
        public override void SetValue(object value)
        {
            try
            {
                this.dateTimePicker.Value = Convert.ToDateTime(value);
            }
            catch { }
        }
        public override object GetValue()
        {
            return this.dateTimePicker.Value;
        }
        public override void SetEnabled(bool enabled)
        {
            this.dateTimePicker.Enabled = enabled;
        }
    }
}
